package cc.telecomdigital.tdstock.utils;

public class Oil implements BMPEntityBase
{
	static final public String		TypeName			= "LCOIL";

	static final public String		NAME				= "NAME";
	static final public String		LAST				= "LAST";
	static final public String		NET					= "NET";
	static final public String		NETPERCENTAGE		= "NETPERCENTAGE";

	static final public String[]	FIELD_ITEMS_MONITOR	= { NAME, LAST, NET, NETPERCENTAGE };

	private String					name;
	private String					last;
	private String					net;
	private String					netPercentage;

	@Override
	public void SetValueByFIELDS_MONITOR(int i, String value)
	{
		switch (i)
		{
			case 0:
				setName(value);
				break;
			case 1:
				setLast(value);
				break;
			case 2:
				setNet(value);
				break;
			case 3:
				setNetPercentage(value);
				break;
		}
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getLast()
	{
		return last;
	}

	public void setLast(String last)
	{
		this.last = last;
	}

	public String getNet()
	{
		return net;
	}

	public void setNet(String net)
	{
		this.net = net;
	}

	public String getNetPercentage()
	{
		return netPercentage;
	}

	public void setNetPercentage(String netPercentage)
	{
		this.netPercentage = netPercentage;
	}

	@Override
	public void SetValueByFIELDS(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_COP(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_NET(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_STOCK(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_TURNOVER(int index, String value)
	{
	}

	@Override
	public String GetKey()
	{
		return name;
	}

	@Override
	public void SetKeyValue(String value)
	{
		name = value;
	}
}
